@import "common";
@import "mixins";
@import "sprites";

#header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 99;
  .link {
    height: 26px;
    line-height: 24px;
    background: #505058;
    span {
      color: #bfbfbf;
      font-size: 16px;
    }
    .icon {
      i {
        color: #fff;
      }
    }
    .login-btn {
      a {
        display: block;
        margin-left: 10px;
        color: #fff;
        border: 1px solid #F89E72;
        padding: 0 14px;
        border-radius: 16px;
      }
    }
  }
  .nav {
    background: #2D2C40;
    height: 54px;
    .logo {
      display: block;
      margin-top: 8px;
    }
    .nav-list {
      li {
        list-style: none;
        float: right;
        line-height: 54px;
        font-size: 16px;
        margin-left: 56px;
        a {
          color: #fff;
          &:hover {
            color: #fe8a52;
          }
        }
      }
      .on-li {
        a {
          color: #fe8a52;
        }
      }
    }
  }
}

#right-nav {
  position: fixed;
  right: 0;
  top: 50%;
  margin-top: -135px;
  z-index: 99;

  @media screen and (max-width: 992px) {
    top: auto;
    bottom: 0;
  }
  li {
    position: relative;
    list-style: none;
    width: 44px;
    height: 44px;
    margin-bottom: 1px;
    &:hover {
      &:nth-child(2) {
        a {
          background-position: -10px -266px;
        }
      }
      &:nth-child(3) {
        a {
          background-position: -10px -138px;
        }
      }
      &:nth-child(4) {
        .tel-hover {
          display: block;
        }
      }
      &:nth-child(5) {
        background-position: -10px -650px;
        .weixin-hover {
          display: block;
        }
      }
      &:nth-child(6) {
        a {
          background-position: -10px -74px;
        }
      }
    }

    .tel-hover,
    .weixin-hover {
      position: absolute;
      display: none;
      right: 0;
      bottom: 0;
      width: 163px;
      height: 44px;
      z-index: 100;
    }
    .weixin-hover {
      width: 317px;
      height: 253px;
    }
    a {
      display: block;
    }
  }
}

#page1 {
  background: url("../images/bg-1.jpg");

  .p1-swiper {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    bottom: 0;
  }

  .item {
    height: 104px;
    background: #fff;
    margin: 0 50px;
    border-radius: 20px;
    border: 2px solid;
    h6 {
      font-size: 22px;
      padding-top: 8px;
    }

    > div {
      font-size: 26px;
      color: #fff;
    }
  }

  @media screen and (max-width: 992px) {
    .item {
      height: 104px;
      h6 {
        font-size: 20px;
      }
      > div {
        font-size: 18px;
      }
    }
  }

  @media screen and (max-width: 768px) {
    .item {
      height: 80px;
      h6 {
        font-size: 18px;
      }
      > div {
        font-size: 16px;
      }
    }
  }

  .item1 {
    color: #A4EDB5;
    background-color: rgba(45, 215, 105, .27);
    border-color: #208264;
  }
  .item2 {
    color: #E5E393;
    background-color: rgba(205, 215, 45, .27);
    border-color: #75834D;
  }
  .item3 {
    color: #EB8A8E;
    background-color: rgba(255, 91, 91, .27);
    border-color: #794064;
  }
  .swiper-container {
    width: 100%;
    height: 100%;
  }
  .item-bottom {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    width: 100%;
    > div {
      margin-bottom: 10px;
    }

  }
  .swiper-slide {
    text-align: center;
    h1 {
      margin-top: 10%;
      font-size: 35px;
    }
    h2 {
      font-size: 22px;
    }
    .num-box {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 40px;
      line-height: 1.8;
      font-size: 28px;
      color: #fff;
      border: 1px solid #F28D5A;
      background-color: rgba(169, 74, 27, .43);
    }
  }
  .slide1 {
    color: #FE9761;
  }
  .slide2 {
    color: #FFEC5B;
  }
  .video-link {
    .video-icon {
      display: block;
      background: url("../images/video-icon.png");
      width: 96px;
      height: 96px;
      cursor: pointer;
      margin: 20px auto 10px;
    }
  }
}

#atom {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#page2 {
  background: url(../images/bg-2.jpg);
  text-align: center;
  h1 {
    display: inline-block;
    margin-top: 120px;
    background: #31c1a5;
    padding: 8px 40px;
    color: #fff;
    .transition(1.2s);
    transform: scale(.1, .1);

    &.enter {
      transform: scale(1, 1);
    }

  }
  p {
    font-size: 20px;
    .transition(1.2s);
    transform: scale(.1, .1);
    &.enter {
      transform: scale(1, 1);
    }
  }

  @media screen and (max-width: 768px) {
    h1 {
      margin-top: 0;
      font-size: 24px;
    }

    p {
      font-size: 20px;
    }

    img {
      margin-top: 40px;
    }
  }
}

#page3 {
  background: url("../images/bg-3.jpg");
  h1 {
    display: inline-block;
    background: #ac990a;
    padding: 8px 40px;
    color: #fff;
    margin-bottom: 100px;
  }
  .item {
    height: 330px;
    border: 1px solid #BAA722;
    background-color: rgba(186, 167, 34, 0.29);
    padding: 26px;
  }

  .split {
    width: 100%;
    margin: 2rem auto 2rem;
    border-top: 1px solid #B2BDB2;
  }
  p {
    color: #fff;
    font-size: 18px;
    line-height: 40px;
  }

  @media screen and (max-width: 920px) {
    p {
      margin-top: 10px;
      font-size: 14px;
    }
  }

  @media screen and (max-width: 768px) {
    h1{
      font-size: 24px;
      margin: 100px 0 10px 0;
    }
    h3 {
      margin: 10px 0 0 0;
      font-size: 20px;
    }

    .item {
      margin: 0 0 10px 0;
      height: auto;
    }
  }
}

#page4 {
  background: url("../images/bg-4.jpg");
  h1 {
    display: inline-block;
    margin-top: 120px;
    background: #E76967;
    padding: 8px 40px;
    color: #fff;
    .transition(1.2s);
    transform: scale(.1, .1);

    &.enter {
      transform: scale(1, 1);
    }

  }
  p {
    font-size: 20px;
    .transition(1.2s);
    transform: scale(.1, .1);
    &.enter {
      transform: scale(1, 1);
    }
  }
  .item-wrap {
    margin-top: 40px;
    .item {
      padding: 40px 0;
      border: 1px solid #b6b6b6;
      margin-top: -1px;
      margin-left: -1px;
      color: #E76967;
      .icon-text {
        margin: 10px 90px;
        font-size: 24px;
        border-bottom: 1px solid #E76967;
        padding-bottom: 6px;
      }
      .text-en {
        font-size: 16px;
      }
      &:hover {
        background: #E76967;
        color: #fff;
        .icon-text {
          border-color: #fff;
        }
        &:nth-child(1) {
          i {
            background-position: -10px -444px;
          }
        }
        &:nth-child(2) {
          i {
            background-position: -10px -692px;
          }
        }
        &:nth-child(3) {
          i {
            background-position: -10px -320px;
          }
        }
        &:nth-child(4) {
          i {
            background-position: -10px -816px;
          }
        }
        &:nth-child(5) {
          i {
            background-position: -10px -568px;
          }
        }
        &:nth-child(6) {
          i {
            background-position: -10px -940px;
          }
        }
        &:nth-child(7) {
          i {
            background-position: -10px -506px;
          }
        }
        &:nth-child(8) {
          i {
            background-position: -10px -196px;
          }
        }
      }
      i {
        display: block;
        margin: 0 auto;
      }
    }
    @media screen and (max-width: 992px) {
      .item {
        padding: 10px 0;
        .icon-text {
          margin: 10px auto;
          font-size: 16px;
          border: none;
          padding-bottom: 6px;
        }
      }
    }
    @media screen and (max-width: 768px) {
      .item {
        padding: 10px 0;
        .icon-text {
          margin: 10px auto;
          font-size: 16px;
          border: none;
          padding-bottom: 6px;
        }
      }
    }
  }
}

#page5{
  background: url("../images/bg-5.jpg");
  text-align: center;

  .tableCell{
    vertical-align: top;
  }

  .swiper-container {
    width: 100%;
    height: 100%;
  }

  h1{
    margin-top: 200px;
    display: inline-block;
    padding: 5px 60px;
    color: white;
    background: #F17A3D;
  }

  .p5-swiper{
    position: absolute;
    left: 0;
    right: 0;
    top: 200px;
    bottom: 0;
    margin-top: 90px;
    font-size: 0;
    background: transparent;

    img{
      margin: 10px auto;
    }
  }

  @media screen and (max-width: 768px) {
    h1{
      margin-top: 100px;
    }
    .p5-swiper{
      top: 100px;
    }
  }
}